﻿using SmallJob.Data.Interfaces;
using SmallJob.Model;
using System.Collections.Generic;

namespace SmallJob.Services.Interfaces
{
    public interface IOrderService : IRepository<Order>
    {
        List<Order> GetByUserID(int id);

        List<Order> GetAllOrderSell(int id);

        List<Order> GetAllOrderBuy(int id);

        List<Order> GetAllOrderByUserId(int id);

        List<Order> GetOrderComment(int p);

        List<Order> GetByPage(int page, int pagesize, out int total);

        List<Order> GetByPageFilter(int page, int pagesize, out int total, string filter,string filterstatus,string filterpayment,string filtertype);

        List<Order> GetAllOrderWorker(int userid);

        List<Order> GetAllOrderPayer(int userid);

        int CountServiceProcess(int userid);

        int CountOrderWaitDone(int userid);
    }
}